package com.huawei.appgallery.netdiagnosekit.ui;

import android.os.Bundle;
import com.huawei.appgallery.foundation.ui.framework.activity.BaseActivity;
import com.huawei.appgallery.netdiagnosekit.impl.DiagnoseProtocol;
import com.huawei.hmf.annotation.ActivityDefine;
import o.cmv.c;
import o.cmv.d;
import o.cmv.e;

@ActivityDefine(alias = "diagnose.activity", protocol = DiagnoseProtocol.class)
public class DiagnoseActivity extends BaseActivity {
    private DiagnoseFragment ˊॱ;

    public void onResume() {
        super.onResume();
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        requestWindowFeature(1);
        setContentView(e.ˏ);
        ॱ(getString(d.ˊॱ));
        ᐝ();
    }

    private void ᐝ() {
        this.ˊॱ = new DiagnoseFragment();
        ˏॱ().ˊ().ˏ(c.ˊ, this.ˊॱ).ˋ();
    }

    public void onBackPressed() {
        if (this.ˊॱ == null || 4 != this.ˊॱ.ʾॱ()) {
            super.onBackPressed();
        } else {
            this.ˊॱ.ॱ();
        }
    }
}
